import psutil

if __name__ == '__main__':
    count = 0
    for p in psutil.process_iter():
        count +=1
    print(count)